<?php
/* @var $this ReklameTarifController */
/* @var $model ReklameTarif */
/* @var $form CActiveForm */
?>

<div class="form">

<?php
    $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
        'id' => 'horizontalForm',
        'type' => 'horizontal',
        'enableAjaxValidation' => false,
    ));
?>

    <p class="note">Fields with <span class="required">*</span> are required.</p>

    <?php echo $form->errorSummary($model); ?>

    <div class="control-group ">
        <label class="control-label">Kode Tarif</label>
        <div class="controls">
                <?php echo $form->textField($model, 'id_tarif_rek', array('size' => 20, 'maxlength' => 20)); ?>
        </div>
    </div>
        
    <div class="control-group ">
        <label class="control-label">Jenis Reklame</label>
        <div class="controls">
                <?php echo $form->DropDownList($model,'id_jenis_rek', CHtml::listData(ReklameJenis::model()->findAll(),'id_jenis_rek', 'jenis_rekening'), array('class'=>'span3')); ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label">Golongan Kelas</label>
        <div class="controls">
                <?php echo $form->DropDownList($model,'id_kelas', CHtml::listData(ReklameKelas::model()->findAll(),'id_kelas', 'golongan_kelas'), array('class'=>'span3')); ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label">Nilai Sewa</label>
        <div class="controls">
                <?php echo $form->textField($model, 'nilai_sewa', array('size' => 50, 'maxlength' => 50)); ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label">NJOP</label>
        <div class="controls">
                <?php echo $form->textField($model, 'njop', array('size' => 50, 'maxlength' => 50)); ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label">Lama Pasang (bulan)</label>
        <div class="controls">
                <?php echo $form->textField($model, 'lama_pasang', array('size' => 50, 'maxlength' => 50)); ?>
        </div>
    </div>
        
    <div class="control-group ">
        <label class="control-label">Sudut Pandang</label>
        <div class="controls">
                <?php echo $form->textField($model, 'sudut_pandang', array('size' => 50, 'maxlength' => 50)); ?>
        </div>
    </div>

    <?php
        $this->widget('bootstrap.widgets.TbButton', array(
                'buttonType' => 'submit',
                'type' => 'success',
				'icon' => 'save',
				'label' => 'Simpan',
            'htmlOptions'=>array('style'=>'margin-left:170px'),
         ));
    ?>

<?php $this->endWidget(); ?>

</div><!-- form -->